<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	
	<head>
		<meta charset="utf-8" />
		<title>后台管理系统</title>

		<meta name="description" content="data tables" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="shortcut icon" href="/Public/assets/img/favicon.png" type="image/x-icon">

		<!--Basic Styles-->
		<link href="/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link id="bootstrap-rtl-link" href="#" rel="stylesheet" />
		<link href="/Public/assets/css/font-awesome.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/weather-icons.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/ladda-themeless.min.css" rel="stylesheet" />

		<!--Fonts-->

		<!--Beyond styles-->
		<link id="beyond-link" href="/Public/assets/css/beyond.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/demo.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/typicons.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/animate.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/dataTables.bootstrap.css" rel="stylesheet" />
		<style type="text/css">
			.page-content {
				margin-left: 0;
			}
		</style>
		<script src="/Public/assets/js/jquery.min.js"></script>
		
		
	</head>
	<!-- /Head -->
	<!-- Body -->

	<body>
		
		
		
	<div class="page-content">
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="<?php echo U('dashboard/index');?>">系统首页</a>
				</li>
				<li class="active">基本设置</li>
			</ul>
		</div>

		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="widget">
						<div class="widget-header bordered-bottom bordered-blue">
							<span class="widget-caption">站点设置</span>
						</div>
						<div class="widget-body">

							<form class="form-horizontal" role="form" action="<?php echo U('setting/save');?>" method="post" id="form">
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">网站名称</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<input type="text" class="form-control" id="site_name" name="site_name" placeholder="网站名称" value="<?php echo (C("setting.site_name")); ?>">
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">网站网址</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<input type="text" class="form-control" id="site_url" name="site_url" placeholder="网站网址" value="<?php echo (C("setting.site_url")); ?>">
												<p class="help-block red">结尾不需要‘/’</p>
										</div>
										
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">备案信息</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<input type="text" class="form-control" id="icp" name="icp" placeholder="备案信息" value="<?php echo (C("setting.icp")); ?>">
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">copyright</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<input type="text" class="form-control" id="copyright" name="copyright" placeholder="copyright" value="<?php echo (C("setting.copyright")); ?>">
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">统计代码</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<textarea class="form-control" id="visit_js" name="visit_js" placeholder="copyright"  rows="5"><?php echo (C("setting.visit_js")); ?></textarea>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">SEO标题</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<input class="form-control" id="seo_title" name="seo_title" placeholder="SEO Title" value="<?php echo (C("setting.seo_title")); ?>">
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">SEO关键字</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<textarea class="form-control" id="seo_keywords" name="seo_keywords" placeholder="SEO Keywords"  rows="3"><?php echo (C("setting.seo_keywords")); ?></textarea>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">SEO描述</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<textarea class="form-control" id="seo_description" name="seo_description" placeholder="SEO Description"  rows="5"><?php echo (C("setting.seo_description")); ?></textarea>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">官方微信号</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<input type="text" class="form-control" id="dhq_wx" name="dhq_wx" placeholder="官方微信号" value="<?php echo (C("setting.dhq_wx")); ?>"  />
										</div>
									</div>
								</div>								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">联系我们</label>
									<div class="col-xs-8">
										<div class="input-group col-xs-6">
											<textarea class="form-control" id="contact_us" name="contact_us" placeholder="联系我们"  rows="5"><?php echo (C("setting.contact_us")); ?></textarea>
										</div>
									</div>
								</div>
								<!--<div class="form-group">-->
									<!--<label class="col-sm-2 control-label no-padding-right">邮件服务器</label>-->
									<!--<div class="col-xs-8">-->
										<!--<div class="input-group col-xs-6">-->
											<!--<input type="text" class="form-control" id="smtp" name="smtp" placeholder="邮件服务器地址：smtp.163.com" value="<?php echo (C("setting.smtp")); ?>">-->
										<!--</div>-->
									<!--</div>-->
								<!--</div>-->
								<!--<div class="form-group">-->
									<!--<label class="col-sm-2 control-label no-padding-right">邮箱用户名</label>-->
									<!--<div class="col-xs-8">-->
										<!--<div class="input-group col-xs-6">-->
											<!--<input type="text" class="form-control" id="mail_address" name="mail_address" placeholder="邮箱用户名" value="<?php echo (C("setting.mail_address")); ?>">-->
										<!--</div>-->
									<!--</div>-->
								<!--</div>-->
								<!--<div class="form-group">-->
									<!--<label class="col-sm-2 control-label no-padding-right">邮箱密码</label>-->
									<!--<div class="col-xs-8">-->
										<!--<div class="input-group col-xs-6">-->
											<!--<input type="password" class="form-control" id="mail_password" name="mail_password" placeholder="邮箱密码" value="<?php echo (C("setting.mail_password")); ?>">-->
										<!--</div>-->
									<!--</div>-->
								<!--</div>-->
								<!--<div class="form-group">-->
									<!--<label class="col-sm-2 control-label no-padding-right">屏蔽关键字</label>-->
									<!--<div class="col-xs-8">-->
										<!--<div class="input-group col-xs-6">-->
											<!--<textarea class="form-control" id="kill_keywords" name="kill_keywords" placeholder="屏蔽关键字"  rows="3"><?php echo (C("setting.kill_keywords")); ?></textarea>-->
											<!--<p class="help-block red">多个关键字，请用英文|隔开</p>-->
										<!--</div>-->
									<!--</div>-->
								<!--</div>-->
								<div class="form-group">
									<div class="col-sm-offset-2 col-sm-10">
										<button type="submit" class="btn btn-blue">保存</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>


				<!--Basic Scripts-->
		
		<script src="/Public/assets/js/bootstrap.min.js"></script>
		<script src="/Public/assets/js/slimscroll/jquery.slimscroll.min.js"></script>
		<script src="/Public/assets/js/fuelux/spinbox/fuelux.spinbox.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/Public/assets/js/loading/spin.js" type="text/javascript" charset="utf-8"></script>
		<script src="/Public/assets/js/loading/ladda.js" type="text/javascript" charset="utf-8"></script>
		<script src="/Public//assets/js/bootstrap-modalmanager.js" type="text/javascript" charset="utf-8"></script>
		<!--Beyond Scripts-->
		<script src="/Public/assets/js/beyond.js"></script>
		<script src="/Public/assets/js/toastr/toastr.js"></script>
		<script src="/Public/assets/js/bootbox/bootbox.js"></script>
		<script src="/Public/assets/js/common.js"></script>
		
	
	<script src="/Public/assets/js/validation/bootstrapValidator.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">	
		$("#form").bootstrapValidator({              
		                excluded: [':disabled'],
		                feedbackIcons: {
		                    valid: 'glyphicon glyphicon-ok',
		                    invalid: 'glyphicon glyphicon-remove',
		                    validating: 'glyphicon glyphicon-refresh'
		                },
		                submitHandler: function (validator, form, submitButton) {
		                    validator.defaultSubmit();
		                },
		                fields: {
		                    min_withdraw: {
		                        validators: {
		                            notEmpty: {
		                                message: '该项不能为空'
		                            },
		                            digits:{ 
		                            	message: '必须为数字'
		                            }
		                        }
		                    }
		                }
		            });
		
	</script>


	</body>
	<!--  /Body -->
	<script>
		 <?php if (!IS_AJAX) { $success_message = session('__SUCCESS_MESSAGE'); if ($success_message) { echo "tips('".$success_message. "');"; } session('__SUCCESS_MESSAGE', null); $error_message = session('__ERROR_MESSAGE'); if ($error_message) { echo "tips('".$error_message. "','danger');"; } session('__ERROR_MESSAGE', null); } ?>
	
	if(parent && typeof parent._attachEvent == 'function'){
		parent._attachEvent(document.documentElement, 'keydown', parent.resetF5);
	}
	</script>

</html>